package events;

import java.util.Vector;

import wdmsim.Node;
import wdmsim.Simulator;
import controlPlane.OBGPSpeaker;

public class OBGPUpdateEvent extends Update {

	Vector<Integer> withdrawDst;
	Vector<Integer> advertiseDst;
	
	public OBGPUpdateEvent(OBGPSpeaker obgpSpeaker) {
		this.id = eventCounter++;
		this.generator = obgpSpeaker;
		this.handler = obgpSpeaker;
		this.withdrawDst = null;
		this.advertiseDst = null;
	}
	
	public OBGPUpdateEvent(OBGPUpdateEvent event) {
		this.id = eventCounter++;
		this.generator = event.getGenerator();
		this.handler = event.getHandler();
		this.withdrawDst = null;
		this.advertiseDst = null;
	}
	
	public String toString() {
		return Simulator.CURRENT_TIME + " E " + ((Node) getHandler()).getId();
	}
}
